extends Node2D

var esc_scene: PackedScene = preload("res://scenes/ui/menu/esc_ui.tscn")
var a: bool = false
# Called when the node enters the scene tree for the first time.
func _ready():
	GlobalVar.current_level = 3 as int

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
	if Input.is_action_just_pressed("in_game_menu"):
		if not a:
			$ESC_scene.add_child(esc_scene.instantiate())
			a = true
		else:
			a = false
